//
//  AppDelegate.swift
//  weibo10
//
//  Created by 周荣硕 on 16/1/7.
//  Copyright © 2016年 grgbanking. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        
        
        print(UserAccountViewModel.sharedUserAccount.account)
        setupAppearance()

        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        window?.backgroundColor=UIColor.whiteColor()

        window?.rootViewController=MainViewController()
        
        window?.makeKeyAndVisible()
        
        return true
    }
    //设置全局外观
    private func setupAppearance(){
    //修改导航栏的外观  --要在控件创建之前设置 ，一经设置全局有效
        UINavigationBar.appearance().tintColor = WBAppearanceTintColor
        UITabBar.appearance().tintColor = WBAppearanceTintColor

    }

}

